c98a55c65403719cc96220f919e49daa423d4b7c,src/main/java/org/esa/beam/atmosphere/operator/GlintCorrectionOperator.java,GlintCorrectionOperator,fillTargetSampleData,#Map#number#PixelData#GlintResult#,448

Before Change


            fillTargetSample(TOSA_REFLEC_BAND_NAMES, pixelIndex, targetSampleData, glintResult.getTosaReflec());
        }
        if (outputReflec) {
            fillTargetSample(REFLEC_BAND_NAMES, pixelIndex, targetSampleData, glintResult.getReflec());
            final ProductData reflecErrorTile = targetSampleData.get(REFLEC_ERROR_BAND_NAME);
            reflecErrorTile.setElemDoubleAt(pixelIndex, glintResult.getReflecError());
        }

After Change



    }

    private void fillTargetSampleData(Map<String, ProductData> targetSampleData, int pixelIndex, PixelData inputData,
                                      GlintResult glintResult) {
        final ProductData agcFlagTile = targetSampleData.get(AGC_FLAG_BAND_NAME);
        agcFlagTile.setElemIntAt(pixelIndex, glintResult.getFlag());
        final ProductData angTile = targetSampleData.get(ANG_443_865);
        angTile.setElemDoubleAt(pixelIndex, glintResult.getAngstrom());
        final ProductData tau550Tile = targetSampleData.get(TAU_550);
        tau550Tile.setElemDoubleAt(pixelIndex, glintResult.getTau550());
        final ProductData tau778Tile = targetSampleData.get(TAU_778);
        tau778Tile.setElemDoubleAt(pixelIndex, glintResult.getTau778());
        final ProductData tau865Tile = targetSampleData.get(TAU_865);
        tau865Tile.setElemDoubleAt(pixelIndex, glintResult.getTau865());
        if (flintProduct == null) {
            // glint ratio available as output only for 'non-flint' case (RD, 28.10.09)
            final ProductData glintTile = targetSampleData.get(GLINT_RATIO);
            glintTile.setElemDoubleAt(pixelIndex, glintResult.getGlintRatio());
        } else {
            final ProductData flintTile = targetSampleData.get(FLINT_VALUE);
            flintTile.setElemDoubleAt(pixelIndex, inputData.flintValue);
        }
        final ProductData btsmTile = targetSampleData.get(BTSM);
        btsmTile.setElemDoubleAt(pixelIndex, glintResult.getBtsm());
        final ProductData atotTile = targetSampleData.get(ATOT);
        atotTile.setElemDoubleAt(pixelIndex, glintResult.getAtot());

        if (outputTosa) {
            fillTargetSample(TOSA_REFLEC_BAND_NAMES, pixelIndex, targetSampleData, glintResult.getTosaReflec());
            final ProductData quality = targetSampleData.get(TOSA_QUALITY_INDICATOR_BAND_NAME);
            quality.setElemDoubleAt(pixelIndex, glintResult.getTosaQualityIndicator());
        }
        if (outputAutoTosa) {
            fillTargetSample(AUTO_TOSA_REFLEC_BAND_NAMES, pixelIndex, targetSampleData,
                             glintResult.getAutoTosaReflec());
        }
        if (outputReflec) {
            fillTargetSample(REFLEC_BAND_NAMES, pixelIndex, targetSampleData, glintResult.getReflec());
        }
        if (outputNormReflec) {
            fillTargetSample(NORM_REFLEC_BAND_NAMES, pixelIndex, targetSampleData, glintResult.getNormReflec());